package jmine.tec.rpc.integration;

import jmine.tec.rpc.common.annotation.RestDefinition;

/**
 * Serviço REST de exemplo
 * 
 * @author lundberg
 */
@RestDefinition
public interface SampleRest {

    /**
     * Obtém o inverso da string dada
     * 
     * @param string string
     * @return reverse
     */
    String reverse(String string);

    /**
     * Concatena as strings passadas
     * 
     * @param strings strings
     * @return strings concatenadas
     */
    String concatenate(String... strings);

    /**
     * Parte a string de acordo com a regex
     * 
     * @param string string
     * @param regex regex
     * @return array de strings
     */
    String[] split(String string, String regex);

    /**
     * Junta as strings dadas com o separador
     * 
     * @param separator separator
     * @param strings strings
     * @return stirng
     */
    String join(String separator, String... strings);
}
